package com.google.code.bigyang.log;

public class LogLog {

	private static final String WARN = "WARN:";
	
	private static final String ERROR = "ERROR:";
	
	public static void warn(String message) {
		System.err.println(WARN + message);
	}	
	
	public static void warn(String message, Throwable thr) {
		System.err.println(WARN + message);
		thr.printStackTrace();
	}
	
	public static void error(String message) {
		System.err.println(ERROR + message);
	}
	
	public static void error(String message, Throwable thr) {
		System.err.println(ERROR + message);
		thr.printStackTrace();
	}
	
}
